package com.wdg.controller;

import com.wdg.pojo.*;
import com.wdg.service.IGetNeedsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/provider_getneeds")
public class GetNeedsController {

    @Autowired
    private IGetNeedsService getNeedsService;

    //    获得所有的厨具
    @GetMapping("/getAllCbtool")
    public List<Cbtool> getAllCbtool(){
        return getNeedsService.getAllCbtool();
    }

    //    获得所有的口味
    @GetMapping("/getAllCbtaste")
    public List<Cbtaste> getAllCbtaste(){
        return getNeedsService.getAllCbtaste();
    }

    //    获得所有难度
    @GetMapping("/getAllCbdifficulty")
    public List<Cbdifficulty> getAllCbdifficulty(){
        return getNeedsService.getAllCbdifficulty();
    }

    //    获得所有的工艺
    @GetMapping("/getAllcratf")
    public List<Cbcratf> getAllcratf(){
        return getNeedsService.getAllcratf();
    }

    //    获得所有的耗时
    @GetMapping("/getAllCbtime")
    public List<Cbtime> getAllCbtime(){
        return getNeedsService.getAllCbtime();
    }


}
